<?php

$backgroundColor = "#990000";
$tableOutline = "#000000";
$topAndBottomBG = "#CC0000";
$topAndBottomText = "#FFCC99";
$middleBG = "#FF9E9E";
$middleTEXT = "#000000";
$reallyLight = "#FFE1E4";
$maincellColor = "#FFFFFF";
$maincellText = "#000000";
$menuColor = "#FFCC99";
$menulinkColor = "#FF6600";
$menutextColor = "#FF6600";
$mainlinkColor = "#003399";
$bottomlinkColor = "#FFCC99";

if ($rank >= 5)
{
	$admin_line .= "<p align=center>Admin Stuff:<br><a class=menu href=# onClick=\"window.open('$base_url/admin/admin_remote.php?game=$game','remote','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=60')\">Mute User</a><br><a class=menu href=$base_url/warn_user.php?game=$game>Warn User</a>";
}

if ($rank >= 7) { $admin_line .= "<br><a href=$base_url/admin/admin.php?game=$game class=menu>Admin Section</a>"; }

if ($rank == null)
{
	$updateLine2 = "<p><a href=register.php?game=$game><img src=images/nav_register.jpg width=113 height=101 border=0></a></p>";
}

$menu = "$updateLine2<p><a href=index.php?game=$game><img src=images/nav_map.jpg width=113 height=101 border=0></a></p><p><a href=/games.php?game=$game><img src=images/nav_game.jpg width=113 height=101 border=0></a></p><p><a href=/mystuff.php?game=$game><img src=images/nav_control.jpg width=113 height=101 border=0></a></p><p align=center><A href=$base_url/login.php?game=$game class=menu>Login</a> | <A href=$base_url/logout.php?game=$game class=menu>Logout</a></font></p>$admin_line";

$userInfo = "<P><FONT SIZE=\"-1\">
		Username: <A HREF=$base_url/update_profile.php?game=$game class=menu>$display_name</A><BR>
        Hunger: <A HREF=$base_url/myitems.php?game=$game class=menu><FONT SIZE=-1>$hungerLevel</A><BR>
        $pointVar: <a href=$base_url/bank.php?game=$game>$points</a><BR>";
        
$searchBox = "<form action=$base_url/prompt.pro.php?game=$game method=post><p align=center><INPUT TYPE=text NAME=command VALUE=\"\" SIZE=8><BR><INPUT TYPE=submit NAME=submit VALUE=\"Do it\"></P></form>";

$copywrite = "<a href=http://www.itixsoft.com class=bottom>Powered 
by itixsoft vPet Engine V.2.1</a><br>$timestamp2 | <a href=$base_url/tos.php?game=$game class=bottom>Terms/Rules</a> | <a href=$base_url/privacy.php class=bottom>Privacy</a>";

$openHTML = "
<HTML>
<HEAD>
   <TITLE>$gameName2 - $page_title</TITLE>
	<style><!--
    INPUT {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; 	background: $maincellColor; border: 1 solid $topAndBottomBG; } 
	TEXTAREA {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; 	background: $maincellColor; border: 1 solid $topAndBottomBG; } 
	BUTTON {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; 	background: $maincellColor; border: 0 solid $topAndBottomBG; } 
	SELECT {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; 	background: $maincellColor; border: 1 solid $topAndBottomBG; } 
	INPUT {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; 	background: $maincellColor; border: 1 solid $topAndBottomBG; } 
	OPTION {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; 	background: $maincellColor; border: 1 solid $topAndBottomBG; } 
	RESET {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; 	background: $maincellColor; border: 1 solid $topAndBottomBG; } 
	SUBMIT {color:#000000; font: 9pt verdana; font-weight: none; text-decoration: none; 	background: $maincellColor; border: 1 solid $topAndBottomBG; }
	A:link {
	text-decoration:  underline;
	color: $mainlinkColor;
	}
	A:visited {
	text-decoration:  underline;
	color: $mainlinkColor;
	}
	A:hover {
	text-decoration:  underline;
	color: $mainlinkColor;
	}
	A:active {
	text-decoration:  underline;
	color: $mainlinkColor;
	}
	A:link.menu {
	text-decoration:  underline;
	color: $menulinkColor;
	}
	A:visited.menu {
	text-decoration:  underline;
	color: $menulinkColor;
	}
	A:hover.menu {
	text-decoration:  underline;
	color: $menulinkColor;
	}
	A:active.menu {
	text-decoration:  underline;
	color: $menulinkColor;
	}
	A:link.bottom {
	text-decoration:  underline;
	color: $bottomlinkColor;
	}
	A:visited.bottom {
	text-decoration:  underline;
	color: $bottomlinkColor;
	}
	A:hover.bottom {
	text-decoration:  underline;
	color: $bottomlinkColor;
	}
	A:active.bottom {
	text-decoration:  underline;
	color: $bottomlinkColor;
	}
	p
	{
	font-family: verdana;
	font-size: 11pt;
	color: black;
	}
	p.error
	{
	font-family: verdana;
	font-weight: bold;
	color: red;
	}
	p.white
	{
	font-family: verdana;
	color: white;
	}
	a.white
	{
	color: white;
	text-decoration: underline;
	}
	hr
	{
	margin: -1;
	}
	img
	{
	border: 0
	}
	--></style>

</HEAD>
<BODY BGCOLOR=\"$backgroundColor\">
<CENTER><TABLE BGCOLOR=\"$tableOutline\" CELLSPACING=1 CELLPADDING=0 WIDTH=\"95%\">
   <TR BGCOLOR=\"#FFCC00\" width=100%>
      <TD VALIGN=bottom COLSPAN=2 HEIGHT=60 BGCOLOR=\"$topAndBottomBG\" width=12>
         <P ALIGN=right><FONT SIZE=\"+3\" COLOR=\"$topAndBottomText\"><B>$gameName</B></FONT></P>
      </TD>
   </TR>
   <TR>
      <TD VALIGN=top BGCOLOR=\"$menuColor\" width=120>
         
         $menu
      
      	 $userInfo
      	 
      	 $searchBox

      </TD>
      <TD VALIGN=top BGCOLOR=\"$maincellColor\"><font color=$maincellText>
";

$closeHTML = "
      </font></TD>
   </TR>
   <TR BGCOLOR=\"$topAndBottomBG\">
      <TD COLSPAN=2>
		<P align=center><FONT SIZE=\"-1\" color=\"$topAndBottomText\">$copywrite</FONT></P>
      </TD>
   </TR>
</TABLE>
</CENTER>
</BODY>
</HTML>
";

?>